//
//  FindTravellingMenuModel.m
//  AroundTheWorld
//
//  Created by dllo on 16/5/26.
//  Copyright © 2016年 IfelseGo an. All rights reserved.
//

#import "FindTravellingMenuModel.h"
#import "FindTravellingMenuTimes_rangeModel.h"
#import "FindTravellingMenuDestinationModel.h"

@implementation FindTravellingMenuModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}

- (void)setTimes_range:(NSMutableArray *)times_range
{
    _times_range = times_range;
    NSMutableArray *array = [NSMutableArray array];
    for (NSDictionary *dic in _times_range) {
        FindTravellingMenuTimes_rangeModel *model = [[FindTravellingMenuTimes_rangeModel alloc] init];
        [model setValuesForKeysWithDictionary:dic];
        [array addObject:model];
    }
    _times_range = [NSMutableArray arrayWithArray:array];
}

- (void)setDestination:(NSMutableArray *)destination
{
    _destination = destination;
    NSMutableArray *array = [NSMutableArray array];
    for (NSDictionary *dic in _destination) {
        FindTravellingMenuDestinationModel *model = [[FindTravellingMenuDestinationModel alloc] init];
        [model setValuesForKeysWithDictionary:dic];
        [array addObject:model];
    }
    _destination = [NSMutableArray arrayWithArray:array];
}

@end
